home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1448 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  835 b 

  1. Path: news.ios.com!usenet
  2. From: Keith Boruff <kboruff@village.ios.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Quick Pointer Question
  5. Date: 14 Jan 1996 04:00:54 GMT
  6. Organization: Internet Online Services
  7. Message-ID: <4d9v5m$ig0@news.ios.com>
  8. NNTP-Posting-Host: ppp-5.ts-3.nyc.idt.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1PE (Windows; I; 16bit)
  13.  
  14. Consider these declaration statements:
  15.  
  16. static char allocbuf[10000];
  17. static char *allocp;
  18. allocp = allocbuf; /* allocp points to allocbuf[0] */
  19.  
  20. Now consider this:
  21.  
  22. static char allocbuf[10000];
  23. static char *allocp = allocbuf;
  24.  
  25.  
  26. I am new to pointers and their syntax; I just want to know if these two 
  27. different declaration expressions are saying the exactly the same thing. 
  28. I would appreciate any help..
  29.  
  30. Keith Boruff
  31.  
  32.